from bipy.components import Component

class Position(Component):
    def __init__(self, x = 0.0, y = 0.0, z = 0.0):
        super(Position, self).__init__('position', 100)
        self._x = x
        self._y = y
        self._z = z
        
    def move_to(self, x = None, y = None, z = None):
        if x: self._x = x
        if y: self._y = y
        if z: self._z = z
        
    def get_pos(self):
        return (self._x, self._y, self._z)
        
component_class = Position